package com.iot.constants;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author lzb22
 */

@Getter
@AllArgsConstructor
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
@ApiModel(value = "操作类型(0-查询,1-新增,2-修改,3-删除,4-导出)", description = "操作类型")
public enum OperationTypeEnum {

    /**
     * 操作类型
     */
    SELECT(0, "查询"),
    INSERT(1, "新增"),
    UPDATE(2, "修改"),
    DELETE(3, "删除"),
    EXPORT(4, "导出");

    @ApiModelProperty(value = "0-查询,1-新增,2-修改,3-删除,4-导出")
    private final int code;

    @ApiModelProperty(value = "SELECT-查询,INSERT-新增,UPDATE-修改,DELETE-删除,EXPORT-导出")
    private final String desc;
}
